package com.metroinfo.infrastructure.keys;

public class StationInfoDataKey implements Comparable<Integer> {
	
	Integer stationID;
	
	public StationInfoDataKey(Integer stationID)
	{
		this.stationID = stationID;
	}

	@Override
	public int compareTo(Integer arg0) {
		
		return stationID.compareTo(arg0);
	}
	
	@Override
	public int hashCode()
	{
		return stationID.hashCode();
	}
	
	@Override
	public boolean equals(Object o)
	{
		if(o==this) return true;
		if((o==null)||!(o instanceof StationInfoDataKey)) return false;
		StationInfoDataKey tmp = StationInfoDataKey.class.cast(o);
		return stationID.equals(tmp.stationID);
	}
	
	

}
